package com.jier.service;

import com.jier.entities.SystemRolePermission;

import java.util.List;

/**
 * 系统角色权限业务接口
 *
 * @author jie_r
 * @date 2018/03/23
 */
public interface ISystemRolePermissionService extends IBaseService<SystemRolePermission> {

    /**
     * 更新系统角色权限
     *
     * @param roleId
     * @param permissionIds
     * @throws Exception
     */
    void updateSystemRolePermission(Integer roleId, List<Integer> permissionIds) throws Exception;

    /**
     * 获取系统角色权限
     *
     * @param roleId
     * @param permissionCode
     * @return
     * @throws Exception
     */
    boolean getRolePermissionByCode(Integer roleId, String permissionCode) throws Exception;
}
